#ifndef BUZZER_H
#define BUZZER_H

#define Buzzer_GPIO_PIN_SEL  (1ULL<<IO_Buzzer)
#define Buzzer_IO_H gpio_set_level(IO_Buzzer,1);
#define Buzzer_IO_L gpio_set_level(IO_Buzzer,0);

extern uint8_t Beep_Enable;

#define Buzzer_Menu() if(Beep_Enable == 0) Beep_Enable = 3;
#define Buzzer_Ignite() Buzzer_Menu()
#define Buzzer_Encoder_Keyboard() Buzzer_Menu()
#define Buzzer_Encoder_Up() Buzzer_Menu()
#define Buzzer_Encoder_Down() Buzzer_Menu()
#define Buzzer_Probe_Insert() Buzzer_Menu()
#define Buzzer_Probe_UnInsert() Buzzer_Menu()
#define Buzzer_Alarm() Beep_Enable = 4

void Buzzer_Init(void);
void Buzzer_Clock_2ms(void);

#endif
